package com.jody;

import com.ask.config.WebConfig;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @author hzwangzhongkui on 15/10/29 .
 */
@Configuration
@ComponentScan("")
public class App {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(App.class);
        new WebConfig();
        ctx.registerShutdownHook();
    }
}
